<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
		<input type="hidden" name="old_goods_img" value="<?php echo $data['goods_img']; ?>" />
		<input type="hidden" name="old_big_goods_img" value="<?php echo $data['big_goods_img']; ?>" />
		<input type="hidden" name="old_mid_goods_img" value="<?php echo $data['mid_goods_img']; ?>" />
		<input type="hidden" name="old_sm_goods_img" value="<?php echo $data['sm_goods_img']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">店铺的id：</td>
                <td>
                    <input  type="text" name="shop_id" value="<?php echo $data['shop_id']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">商品的名称：</td>
                <td>
                    <input  type="text" name="goods_name" value="<?php echo $data['goods_name']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">商品的价格：</td>
                <td>
                    <input  type="text" name="goods_price" value="<?php echo $data['goods_price']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">打折：</td>
                <td>
                    <input  type="text" name="discount" value="<?php echo $data['discount']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">1热卖2新品3月活动：</td>
                <td>
                    <input  type="text" name="googs_type" value="<?php echo $data['googs_type']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">买的方式：</td>
                <td>
                	<input type="radio" name="buy_type" value="预定" <?php if($data['buy_type'] == '预定') echo 'checked="checked"'; ?> />预定 
                	<input type="radio" name="buy_type" value="购买" <?php if($data['buy_type'] == '购买') echo 'checked="checked"'; ?> />购买 
                </td>
            </tr>
            <tr>
                <td class="label">商品的图片：</td>
                <td>
                	<input type="file" name="goods_img" /><br /> 
                	<?php showImage($data['goods_img'], 100); ?>                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>
<script>
</script>